package com.meilai.project.entity.business.installOrder;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("work_order")
@ApiModel(value= "工单表")
public class WorkOrder extends BaseEntity {
    @ApiModelProperty(value = "工单类型id，1：新安装，2:上刊，3:下刊，4:巡检，5:维修")
    private Integer work_order_type_id;
    @ApiModelProperty(value = "工单名称")
    private String name;
    @ApiModelProperty(value = "截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deadline;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "销售单id")
    private Long bill_sale_id;
    @ApiModelProperty(value = "手动关闭，1：是，0：否")
    private Boolean hand_closed;
    @ApiModelProperty(value = "null：需生成，0：在生成，1：已生成，2：生成出错")
    private Integer report_can_download;
    @ApiModelProperty(value = "ppt地址")
    private String report_path;
    @ApiModelProperty(value = "null：需生成，0：在生成，1：已生成，2：生成出错")
    private Integer img_zip_can_download;
    @ApiModelProperty(value = "图片包地址")
    private String img_zip_path;
    @ApiModelProperty(value = "状态")
    private Integer mode;
    //===============NEW ADD================
    @ApiModelProperty(value = "市场单详情id")
    private Long bill_market_detail_id;

}
